package pyip.lib.javalearn.aop.dynamicproxy.spring.throwsadvice;

import pyip.lib.javalearn.aop.dynamicproxy.Greeting;

public class GreetingExceptionImpl implements Greeting {

    @Override
    public void sayHello(String name) {
        System.out.println("Hello! " + name);

        throw new RuntimeException("Error"); // 故意抛出一个异常，看看异常信息能否被拦截到
    }
}